/*
 * Created on May 7, 2007
 */
package com.mgmaps.net;

/**
 * A default download handler interface used for enqueuing strings (URLs) instead of
 * {@link com.mgmaps.net.Downloadable} objects.
 */
public interface DownloadHandler {
  
  /**
   * Notify that a download has completed.
   * 
   * @param url the URL downloaded
   * @param data the URL data
   */
  public void notifyDownloaded(String url, byte[][] data);
  
  /**
   * Notify that an error occured.
   * 
   * @param url the URL (not) downloaded
   * @param message error message
   */
  public void notifyError(String url, String message);

}
